<%@page import="systems.AdsSystem"%>
<%@page import="systems.RecentlyUpdate"%>
<%@page import="systems.RecentlyDomain"%>
<%@page import="java.util.List"%>
<%
List<String> domains = RecentlyDomain.getDomains();
List<String> uDomains = RecentlyUpdate.getDomains();
String ip = (String) request.getAttribute("ip");
%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<jsp:include page="/templates/default/layouts/header.jsp" />

		<div class="row-fluid clearfix">
			<!-- Main Content -->
			<div class="span8 main-content">
				<h2>Check information about any websites</h2>
				<p class="main-meta">Please enter a domain</p>
				
				<section id="search-bar">
					<div class="item-stream unstyled search-input-stream">
						<div class="stream-item stream-header search-input-item">
							<form action="/goto" class="form-inline search-form">
								<input type="text" role="textbox" class="xlarge ui-autocomplete-input" id="artist_search" name="q" placeholder="ex: google.com" value="">
		          				<button class="btn btn-large btn-inverse" id="artist_submit" type="submit"><i class="icon-search icon-white"></i></button>
							</form>
						</div>
					</div>
				</section>
				
				<div class="adv">
					<%=AdsSystem.getAds468x15() %>
				</div>
				<br />
				
				<section class="block">
					<h4>Your IP <%=ip %></h4>
					<div class="block-content ip-location">
						<script type="text/javascript" src="http://ip-geo.appspot.com/geo_data.js"></script>
                            <script type='text/javascript'>
								document.write(geo.generate_map(615, 300));
							</script>
					</div>
				</section>
			</div>
			<!-- Main Content -->
			
			<!-- slidebar BEGIN -->
			<div class="span4 slidebar">
				<section class="block">
					<h4>Recently view</h4>
					<div class="block-content">
						<h5>Recently Domain view</h5>
						<ul class="narrow">
							<%
							for (int i = 0; i < domains.size(); i++) {
								if (i >= 16) break;
							%>
							<li><a href="/www/<%=domains.get(i) %>"><%=domains.get(i) %></a></li>
							<% } %>
						</ul>
					</div>
				</section>
				
				
			</div>
			<!-- slidebar END -->
			
			<div class="adv" align="center">
				<%=AdsSystem.getAds728x90() %>
			</div>
			<br />
			
			<div class="row-fluid">
				<div class="span12">
					<section class="block">
						<h4>Site Featured</h4>
						<div class="adv top-right">
							<%=AdsSystem.getAds728x15() %>
						</div>
						
						<div class="row-fluid">
							<div class="span3">
								<div class="afeature">
									<div class="afmatter">
										<h4><a href="/ip">Check Ip</a></h4>
										<p>Check IP allow you can find out who an IP belongs to</p>
									</div>
								</div>
							</div>
							
							<div class="span3">
								<div class="afeature">
									<div class="afmatter">
										<h4><a href="/whois">Check Whois</a></h4>
										<p>checksiteinfo.net help you get info whois any domain quickly, full information about domain and other tools</p>
									</div>
								</div>
							</div>
							
							<div class="span3">
								<div class="afeature">
									<div class="afmatter">
										<h4><a href="/rip">Reverse IP</a></h4>
										<p>Reverse IP allow you to find info of domain name hosted on IP</p>
									</div>
								</div>
							</div>
							
							<div class="span3">
								<div class="afeature">
									<div class="afmatter">
										<h4><a href="/kranking">Keyword Ranking</a></h4>
										<p>Tool get keywork ranking of site, check full information keyword ranking of site in checksiteinfo.net.</p>
									</div>
								</div>
							</div>
						</div>
					</section>
					
					<div class="adv" align="center">
						<%=AdsSystem.getAds728x90() %>
					</div>
					<br />
					
					<section class="block">
						<h4>Recently Update</h4>
						<div class="adv top-right">
							<%=AdsSystem.getAds728x15() %>
						</div>
						<div class="block-content no-bg">
							<h5>Recently Domain update</h5>
							<ul class="narrow row5 clearfix">
								<%
								for (int i = 0; i < uDomains.size(); i++) {
									if (i >= 20) break;
								%>
								<li><a href="/www/<%=uDomains.get(i) %>"><%=uDomains.get(i) %></a></li>
								<% } %>
							</ul>
						</div>
					</section>
				</div>
			</div>
		</div>

<jsp:include page="/templates/default/layouts/footer.jsp" />